package com.geezdata.cps.base.vo;

import java.util.Date;

import com.geezdata.cps.base.annotation.NotNullIfAnotherFieldHasValue;

@NotNullIfAnotherFieldHasValue.List({
    @NotNullIfAnotherFieldHasValue(
        fieldName = "sendType",
        fieldValue = "2",
        dependFieldName = "startTime"),
    @NotNullIfAnotherFieldHasValue(
            fieldName = "sendType",
            fieldValue = "3",
            dependFieldName = "executionCycle"),
    @NotNullIfAnotherFieldHasValue(
        fieldName = "sendType",
        fieldValue = "3",
        dependFieldName = "startTime"),
    @NotNullIfAnotherFieldHasValue(
            fieldName = "sendType",
            fieldValue = "3",
            dependFieldName = "endTime")
})

public class SendModeVO {
    private Integer sendType;
    private Integer executionCycle;
    private Date startTime;
	private Date endTime;
	private String executionCycleUnit;
	
	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}
	
	public Integer getExecutionCycle() {
		return executionCycle;
	}

	public void setExecutionCycle(Integer executionCycle) {
		this.executionCycle = executionCycle;
	}

	public Date getStartTime() {
		return startTime;
	}
	
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	public Date getEndTime() {
		return endTime;
	}
	
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getExecutionCycleUnit() {
		return executionCycleUnit;
	}

	public void setExecutionCycleUnit(String executionCycleUnit) {
		this.executionCycleUnit = executionCycleUnit;
	}
	
}